package com.aphrodite.ui.widgets.browser;

import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;

import com.aphrodite.xml.XMLReader;

final class Body extends BrowserElement {
	private static int height;
	private static int width;
	Image bgImage;

	Body(int width, int height) {
		this.width = width;
		this.height = height;
	}

	final void draw(Graphics g) {
		if (bgImage == null) {
			g.setColor(color);
			g.fillRect(0, 0, width, height);
		} else {

		}
	}

	final void process(XMLReader reader) {
		String attr = reader.getAttribute("bgColor");
		if (attr != null) {
			color = Integer.parseInt(attr, 16);
			System.out.println("bg color =" + color);
		}
	}
}
